package pl.edu.pk.adcampaignfacebook.core;


public class AuthRequest {
	// TODO dynamiczne pobieranie postfixu
	private static final String POSTFIXURL = "/photointegrator/accounts/response";
	private String url;
	private String state;
	private String secret;
	private Long userId;
	private String service;
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getService() {
		return service;
	}
	public void setService(String service) {
		this.service = service;
	}
	
	
	public String getSecret() {
		return secret;
	}
	public void setSecret(String secret) {
		this.secret = secret;
	}
	public static String getResponseUrl(){     
		String responseUrl = "";
		/*try {
			responseUrl += InetAddress.getLocalHost().getHostAddress() + POSTFIXURL;
		} catch (UnknownHostException e) {
			// TODO raczej nie powinno sie pojawiac ewentualnie dodać logoowanie błedu
			e.printStackTrace();
		}*/
		responseUrl += "http://localhost:8080" + POSTFIXURL;
		return responseUrl;
	}
}
